package cn.ekgc.web166.dao;

import cn.ekgc.web166.entity.Pagination;
import cn.ekgc.web166.entity.Student;

import java.util.List;
import java.util.Map;

public interface StudentDao {
    void save(Student student);
    Student get(int id);
    List<Student> list();
    List<Student> findBuQuery(String sql,Object ...params);
    void update(Student student);
    void delete(int id);


    void listByPagination(Pagination<Student> pagination);

    void listByPaginationAndParams(Pagination<Student> pagination, Map<String, String> params);
}

